/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#include "../import/head.h"
#include "../impl/head.h"
#include "heart_acceptor.h"

/////////////////////////////////////////////////////////////////////////////////////////
// 
namespace xos_box
{
    ////////////////////////////////////////////////////////////////////////////////////
    // 

    static heart_acceptor::ITEM_DATA xos_item_data;

    ////////////////////////////////////////////////////////////////////////////////////

    heart_acceptor::heart_acceptor()
    {
        m_iInterval = 20;
        m_iCurTime = 0;
        m_pAcceptor = 0;
    }

    heart_acceptor::~heart_acceptor()
    {
        term();
    }

    ////////////////////////////////////////////////////////////////////////////////////
    // 

    int heart_acceptor::get_xos_item_data( ITEM_DATA*& item_ptr )
    {
        int ret = 0;
        xos_item_data.set_container( mgr::container() );
        item_ptr = &xos_item_data;
        return ret;
    }

    int heart_acceptor::init()
    {
        int nRet = 0;
        return nRet;
    }

    int heart_acceptor::term() 
    {
        int nRet = 0;

        m_iInterval = 20;
        m_iCurTime = 0;
        m_pAcceptor = 0;

        return nRet;
    }

} // xos
